package ooday04;

import java.util.Timer;
import java.util.TimerTask;
public class TimerTaskDemo {
    public static void main(String[] args) {
        Timer timer2=new Timer();
        int time =999;
        timer2.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("该起床学习了！！");
            }
        },555,555);
    }
}
